package cn.summit;

import lombok.extern.slf4j.Slf4j;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author summit
 * @since 2022/1/16 14:32
 */
@SpringBootApplication
@EnableDiscoveryClient
@RestController
@Slf4j
public class StockApplication {

	public static void main(String[] args) {
		SpringApplication.run(StockApplication.class, args);
	}

	@GetMapping("/jian")
	public String shop(){
		log.info("库存减一");
		return "库存减一";
	}
}
